package cn.com.nes.mybatis.agent.inventory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
* 入库申请单
*/
@Data
@TableName("g_order_in_apply")
public class GOrderInApply{

    @ApiModelProperty("主键Id")
    @TableId(value = "uuid", type = IdType.INPUT)
    private String uuid;

    @ApiModelProperty("申请单id")
    @TableField(value = "applyId")
    private String applyId;

    @ApiModelProperty("采购订单ID")
    @TableField(value = "purchaseId")
    private String purchaseId;

    @ApiModelProperty("序号")
    private Integer serial;

    @ApiModelProperty("申请类型  01-采购入库 02-退货入库")
    @TableField(value = "orderType")
    private String orderType;

    @ApiModelProperty("订单状态 01-新订单 02-申请审核  03-审核通过  04-审核未通过  07-入库成功")
    @TableField(value = "orderState")
    private String orderState;

    @ApiModelProperty("公司id")
    @TableField(value = "companyId")
    private String companyId;

    @ApiModelProperty("部门id")
    @TableField(value = "departmentId")
    private String departmentId;

    @ApiModelProperty("申请人")
    @TableField(value = "applyUid")
    private Long applyUid;

    @ApiModelProperty("申请时间")
    @TableField(value = "applyTime")
    private Date applyTime;

    @ApiModelProperty("采购厂家id")
    @TableField(value = "customerId")
    private String customerId;

    @ApiModelProperty("采购厂家名称")
    @TableField(value = "customerName")
    private String customerName;

    @ApiModelProperty("采购厂家地址")
    @TableField(value = "address")
    private String address;

    @ApiModelProperty("采购厂家电话")
    private String phone;

    @ApiModelProperty("采购厂家联系人")
    private String cusname;

    @ApiModelProperty("商品uuid")
    @TableField(value = "goodsUUid")
    private String goodsUUid;

    @ApiModelProperty("出入库数量")
    @TableField(value = "inoutNum")
    private BigDecimal inoutNum;

    @ApiModelProperty("备注")
    private String memo;

    @ApiModelProperty("审核人")
    @TableField(value = "reviewerId")
    private Long reviewerId;

    @ApiModelProperty("审核时间")
    @TableField(value = "reviewerTime")
    private Date reviewerTime;

    @ApiModelProperty("审核结果 01-通过  02-不通过")
    @TableField(value = "reviewerResult")
    private String reviewerResult;

    @ApiModelProperty("审核建议")
    @TableField(value = "reviewerSuggest")
    private String reviewerSuggest;

    @ApiModelProperty("是否删除")
    private Integer isdelete;

}
